Fix local-variables risk (CVE-2007-5795).
authorRob Browning <rlb@defaultvalue.org>
Sat, 24 Nov 2007 00:41:56 +0000 (16:41 -0800)
committerRob Browning <rlb@defaultvalue.org>
Sat, 24 Nov 2007 00:41:56 +0000 (16:41 -0800)
debian/changelog
debian/patches/fix-local-variables-risk-cve-2007-5795.diff [new file with mode: 0644]
debian/patches/series

index 3985a76671cb15ed734e0e7d4f8e40a258194839..6cd364bf0ec305e745bda818ad1641a92920231f 100644 (file)
@@ -1,3 +1,12 @@
+emacs22 (22.1+1-3) unstable; urgency=low
+
+  * Incorporate a patch to fix a vulnerability in the handling of file
+    local variables (CVE-2007-5795) (closes: #449008).  Thanks to Drake
+    Wilson <drake@begriffli.ch>, and also thanks to Romain Francoise for
+    the 22.1+1-2.1 NMU. [rlb]
+
+ -- Rob Browning <rlb@defaultvalue.org>  Fri, 23 Nov 2007 16:12:04 -0800
+
 emacs22 (22.1+1-2) unstable; urgency=low
 
   * Fix mail locking patch for Debian's non-Linux architectures.  Thanks
diff --git a/debian/patches/fix-local-variables-risk-cve-2007-5795.diff b/debian/patches/fix-local-variables-risk-cve-2007-5795.diff
new file mode 100644 (file)
index 0000000..b1176fe
--- /dev/null
@@ -0,0 +1,28 @@
+* A security vulnerability in the handling of local variables has been fixed.
+  Patch: cve-2007-5795.diff
+  Provided-by: Drake Wilson <drake@begriffli.ch>
+  Date: Sat Nov 24 00:39:36 UTC 2007
+  Added-by: Rob Browning <rlb@defaultvalue.org>
+  Status: merged upstream
+
+  Upstream changelog entry:
+
+  2007-11-02  Drake Wilson  <drake@begriffli.ch>  (tiny change)
+
+        * files.el (hack-local-variables): Fix membership tests to avoid
+        treating all variables as safe if `enable-local-variables' is
+        set to :safe.
+
+--- a/lisp/files.el
++++ b/lisp/files.el
+@@ -2736,8 +2736,8 @@
+               ;; If caller wants only the safe variables,
+               ;; install only them.
+               (dolist (elt result)
+-                (unless (or (memq (car elt) unsafe-vars)
+-                            (memq (car elt) risky-vars))
++                (unless (or (member elt unsafe-vars)
++                            (member elt risky-vars))
+                   (hack-one-local-variable (car elt) (cdr elt))))
+             ;; Query, except in the case where all are known safe
+             ;; if the user wants no quuery in that case.
index c1531c8ef5192410494d0926d797aabe882d2d8c..188b2c18cf9c260ee7aaa58468ae47ada452e881 100644 (file)
@@ -1,4 +1,5 @@
 fix-emacs-manpage.diff
+fix-local-variables-risk-cve-2007-5795.diff
 fix-bitmap-icon-arg.diff
 debian-site-init-el.diff
 debian-startup.diff